'use strict'

/**
 * 路由器
 */
//------------------------------------------------------------------
import utils from '../utils'
//------------------------------------------------------------------

export const store = {
    state: {
        // 激活信息
        activeInfo: utils.getStorage('active_info')
    },
    mutations: {
        setActiveInfo(state, data) {
            state.activeInfo = data
            utils.saveStorage('active_info', data)
        }
    },
    getters: {
        // 激活信息
        activeInfo: state => state.activeInfo
    }
}
